package com.example.chatgptapplication.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.example.chatgptapplication.common.bean.BaseEntity;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.util.Date;
import java.util.List;

@Data
@TableName("user")
@AllArgsConstructor
@NoArgsConstructor
public class User extends BaseEntity {


    @TableId(type = IdType.AUTO)
    private Integer id;

    @TableField("account")
    private String account;


    @TableField("password")
    private String password;


    @TableField("name")
    private String name;


    @TableField("avatar")
    private String avatar;


    @TableField("status")
    private int status;


    @TableField("create_time")
    private Date createTime;


    @TableField("update_time")
    private Date updateTime;


    @TableField(exist = false)
    private List<Model> models;


    @TableField("type")
    private Integer type;


}
